-- GENERATED SPELL FOR [Spiteflayer] --


function spell0_8299(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(15042,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8299', 570, 1)
end

function spell1_8299(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_8299', 582, 1)
end

function Sorts_8299(pUnit, Event)
local choix_sorts_8299 = math.random(0, 1)
if choix_sorts_8299 == 0 then
pUnit:RegisterEvent('spell0_8299', 1, 1)
end
if choix_sorts_8299 == 1 then
pUnit:RegisterEvent('spell1_8299', 1, 1)
end
end

function mob8299_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8299', math.random(1500, 3000), 1)
end

function mob8299_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8299_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8299_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8299, 1, 'mob8299_Action')
RegisterUnitEvent(8299, 2, 'mob8299_Leave')
RegisterUnitEvent(8299, 3, 'mob8299_Kill')
RegisterUnitEvent(8299, 4, 'mob8299_Die')
